package com.carltechnology.mahjonggamecaculation.base;

import android.app.Application;
import android.content.Context;

/**
 * Created by WZTCM on 2016/6/28.
 * Our Application Context.
 * Store MahjongDataPool and Context.
 */
public class MyApplication extends Application{
    private static Context mContext;
    private static MahjongDataPool pool;
    @Override
    public void onCreate() {
        super.onCreate();
        mContext = getApplicationContext();
        pool = new MahjongDataPool();
    }

    public static MahjongDataPool getPool() {
        return pool;
    }

    public static Context getContext() {
        return mContext;
    }

}
